package com.corechina.apex_osswords.domain.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.corechina.apex_osswords.domain.entity.CoreKnowledgeBase;
import com.corechina.apex_osswords.domain.vo.CoreKnowledgeBaseVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * <p>
 * 知识库 Mapper 接口
 * </p>
 *
 * @author fyh
 * @since 2023-02-03
 */
@Component
public interface CoreKnowledgeBaseMapper extends BaseMapper<CoreKnowledgeBase> {

    IPage<CoreKnowledgeBaseVo> getList(Page page,@Param("type") Integer type, @Param("name") String name, @Param("enterpriseId") Integer enterpriseId);

    CoreKnowledgeBaseVo getOneForWeiXin(@Param("id") Integer id);

    IPage<CoreKnowledgeBaseVo> getListForWeiXin(Page page,@Param("type") Integer type, @Param("enterpriseId") Integer enterpriseId);

}
